﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace WarFrota.Models
{
    [Table("Usuario")]
    public class Usuario
    {
        [Key]
        [Required]
        [DataType(DataType.Text)]
        public int Id { get; set; }

        [Required]
        [StringLength(50)]
        [DataType(DataType.Text)]
        public string Placa { get; set; }

        [Required]
        [StringLength(10, ErrorMessage="Senha deve ter no mínimo {0} caracteres", MinimumLength=5)]
        [DataType(DataType.Text)]
        [Display(Name = "Senha")]
        public string Senha { get; set; }

    }}